<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

Route::any('testrole', 'MyTestController@testrole');
Route::any('testsetrole', 'MyTestController@testsetrole');
Route::get('dotest', 'TestController@dotest');
Route::any('gettagdata', 'TestController@gettagdata');
Route::post('getinfo', 'Account\StoreController@getinfo');


Route::any('gettagcodeinfo', 'Goods\GoodsPrinttagController@gettagcodeinfo');
Route::any('getorderinfobymanger', 'Order\OrderInfoController@getinfo');


//不需要登陆
Route::post('login/dologin', 'Login\LoginController@dologin');

Route::any('sendsms', 'Common\AlismsController@sendsms');
Route::any('sendwx', 'Common\AlismsController@sendwx');
Route::any('basic/templatetag/designtag', 'Basic\TemplateTagController@designtag');
Route::any('basic/templatequality/designtag', 'Basic\TemplateQualityController@designtag');

Route::any('basic/templatequality/qualityTag', 'Basic\TemplateQualityController@qualityTag');
Route::any('basic/templatequality/qualityPrint', 'Basic\TemplateQualityController@qualityPrint');

Route::any('basic/templatetag/tagPrint', 'Basic\TemplateTagController@tagPrint');
Route::any('basic/templatetag/download', 'Basic\TemplateTagController@download');

//需登录
Route::group([
    'prefix' => '',
    'middleware' => ['accountislogin']
], function ($router) {

    Route::post('login/dologinout', 'Login\LoginController@dologinout');
    Route::post('login/changepassword', 'Login\LoginController@changepassword');

    Route::group([
        'prefix' => 'common'
    ], function ($router) {
        Route::post('uploadtooss', 'Common\CommonController@uploadtooss');
        Route::post('uploadfiletolocal', 'Common\CommonController@uploadfiletolocal');
        Route::post('getregion', 'Common\CommonController@getregion');
        Route::post('getmenulist', 'Common\CommonController@getmenulist');
        Route::post('dolock', 'Common\CommonController@dolock');
        Route::any('download', 'Common\CommonController@download');
    });

    Route::group([
        'prefix' => 'notice'
    ], function ($router) {
        Route::post('getlist', 'Common\NoticeController@getlist');
        Route::post('getinfo', 'Common\NoticeController@getinfo');
    });
    Route::group([
        'prefix' => 'question'
    ], function ($router) {
        Route::post('getlist', 'Common\QuestionController@getlist');
        Route::post('getinfo', 'Common\QuestionController@getinfo');
    });
    Route::group([
        'prefix' => 'swimg'
    ], function ($router) {
        Route::post('getlist', 'Common\SwimgController@getlist');
    });

    Route::group([
        'prefix' => 'video'
    ], function ($router) {
        Route::post('getlist', 'Common\VideoController@getlist');
        Route::post('getinfo', 'Common\VideoController@getinfo');
    });
    Route::group([
        'prefix' => 'account'
    ], function ($router) {
        Route::post('getinfo', 'Account\AccountController@getinfo');
        Route::post('editinfo', 'Account\AccountController@editinfo');
        Route::post('getshoppingaccount', 'Account\AccountController@getshoppingaccount');
        Route::post('getcurrentstoreshoppingaccount', 'Account\AccountController@getcurrentstoreshoppingaccount');

        Route::post('getlist', 'Account\AccountController@getlist');
        Route::post('getinfobyid', 'Account\AccountController@getinfobyid');
        Route::post('editinfobyid', 'Account\AccountController@editinfobyid');
        Route::post('dopostadd', 'Account\AccountController@dopostadd');
        Route::post('resetpassword', 'Account\AccountController@resetpassword');
        Route::post('dodel', 'Account\AccountController@dodel');
        Route::post('getcurrentcompany', 'Account\AccountController@getcurrentcompany');
        Route::post('resetcompanylimit', 'Account\AccountController@resetcompany');
        Route::post('getruleinfo', 'Account\AccountController@getruleinfo');
        Route::post('dopostrule', 'Account\AccountController@dopostrule');
        Route::post('dochangewxapploginstatus', 'Account\AccountController@dochangewxapploginstatus');

        Route::post('storeSave', 'Account\StoreController@storeSave');
        Route::post('storeInfo', 'Account\StoreController@storeInfo');
        Route::post('getQrcode', 'Account\StoreController@getQrcode');

    });
    Route::group([
        'prefix' => 'accountdepartment'
    ], function ($router) {
        Route::post('dopostadd', 'Account\AccountDepartmentController@dopostadd');
        Route::post('getlist', 'Account\AccountDepartmentController@getlist');
        Route::post('dodel', 'Account\AccountDepartmentController@dodel');
        Route::post('dopostedit', 'Account\AccountDepartmentController@dopostedit');
        Route::post('dopostaddaccount', 'Account\AccountDepartmentController@dopostaddaccount');
        Route::post('getlistaccount', 'Account\AccountDepartmentController@getlistaccount');
        Route::post('doposteditaccount', 'Account\AccountDepartmentController@doposteditaccount');
    });
    Route::group([
        'prefix' => 'store'
    ], function ($router) {
        Route::post('getlist', 'Account\StoreController@getlist');
        Route::any('getinfo', 'Account\StoreController@getinfo');
        Route::post('doisopenaddedrecovery', 'Account\StoreController@doisopenaddedrecovery');
        Route::post('doexport', 'Account\StoreController@doexport');

    });

    Route::group([
        'prefix' => 'basic'
    ], function ($router) {

        Route::group([
            'prefix' => 'glodprice'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsGlodpriceController@getlist');
            Route::post('domaintenance', 'Goods\GoodsGlodpriceController@domaintenance');
            Route::post('dopostedit', 'Goods\GoodsGlodpriceController@dopostedit');
            Route::post('dopostdel', 'Goods\GoodsGlodpriceController@dopostdel');
            Route::post('dopostbatchadd', 'Goods\GoodsGlodpriceController@dopostbatchadd');
            Route::post('dopostcopy', 'Goods\GoodsGlodpriceController@dopostcopy');
            Route::post('doexport', 'Goods\GoodsGlodpriceController@doexport');
            Route::post('getinfo', 'Goods\GoodsGlodpriceController@getinfo');

        });


        Route::group([
            'prefix' => 'goodsbrand'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsBrandController@getlist');
            Route::post('getinfo', 'Basic\GoodsBrandController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsBrandController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsBrandController@dopostedit');
            Route::post('dodel', 'Basic\GoodsBrandController@dodel');
        });

        Route::group([
            'prefix' => 'goodscabinetgroup'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsCabinetgroupController@getlist');
            Route::post('getinfo', 'Basic\GoodsCabinetgroupController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsCabinetgroupController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsCabinetgroupController@dopostedit');
            Route::post('dodel', 'Basic\GoodsCabinetgroupController@dodel');
            Route::post('dodownload', 'Basic\GoodsCabinetgroupController@dodownload');
            Route::post('doimport', 'Basic\GoodsCabinetgroupController@doimport');
        });



        Route::group([
            'prefix' => 'goodscategory'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsCategoryController@getlist');
            Route::post('getinfo', 'Basic\GoodsCategoryController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsCategoryController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsCategoryController@dopostedit');
            Route::post('dodel', 'Basic\GoodsCategoryController@dodel');
            Route::post('dodownload', 'Basic\GoodsCategoryController@dodownload');
            Route::post('doimport', 'Basic\GoodsCategoryController@doimport');
            Route::post('doexport', 'Basic\GoodsCategoryController@doexport');
            Route::post('getlistbystore', 'Basic\GoodsCategoryController@getlistbystore');
            Route::post('dodelmore', 'Basic\GoodsCategoryController@dodelmore');
            Route::any('getCate', 'Basic\GoodsCategoryController@getCate');
        });

        Route::group([
            'prefix' => 'goodscraft'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsCraftController@getlist');
            Route::post('getinfo', 'Basic\GoodsCraftController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsCraftController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsCraftController@dopostedit');
            Route::post('dodel', 'Basic\GoodsCraftController@dodel');
            Route::post('dodownload', 'Basic\GoodsCraftController@dodownload');
            Route::post('doimport', 'Basic\GoodsCraftController@doimport');
        });


        Route::group([
            'prefix' => 'goodsmetal'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsMetalController@getlist');
            Route::post('getinfo', 'Basic\GoodsMetalController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsMetalController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsMetalController@dopostedit');
            Route::post('dodel', 'Basic\GoodsMetalController@dodel');
        });

        Route::group([
            'prefix' => 'goodspricetype'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsPricetypeController@getlist');
            Route::post('getinfo', 'Basic\GoodsPricetypeController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsPricetypeController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsPricetypeController@dopostedit');
            Route::post('dodel', 'Basic\GoodsPricetypeController@dodel');
        });

        Route::group([
            'prefix' => 'goodsrefoundtype'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsRefoundTypeController@getlist');
            Route::post('getinfo', 'Basic\GoodsRefoundTypeController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsRefoundTypeController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsRefoundTypeController@dopostedit');
            Route::post('dodel', 'Basic\GoodsRefoundTypeController@dodel');
        });

        Route::group([
            'prefix' => 'goodsstone'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsStoneController@getlist');
            Route::post('getinfo', 'Basic\GoodsStoneController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsStoneController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsStoneController@dopostedit');
            Route::post('dodel', 'Basic\GoodsStoneController@dodel');
        });

        Route::group([
            'prefix' => 'goodsstyle'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsStyleController@getlist');
            Route::post('getinfo', 'Basic\GoodsStyleController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsStyleController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsStyleController@dopostedit');
            Route::post('dodel', 'Basic\GoodsStyleController@dodel');
            Route::post('dodownload', 'Basic\GoodsStyleController@dodownload');
            Route::post('doimport', 'Basic\GoodsStyleController@doimport');
            Route::post('dodelmore', 'Basic\GoodsStyleController@dodelmore');
        });

        Route::group([
            'prefix' => 'orderremark'
        ], function ($router) {
            Route::post('getlist', 'Basic\OrderRemarkController@getlist');
            Route::post('getinfo', 'Basic\OrderRemarkController@getinfo');
            Route::post('dopostadd', 'Basic\OrderRemarkController@dopostadd');
            Route::post('dopostedit', 'Basic\OrderRemarkController@dopostedit');
            Route::post('dodel', 'Basic\OrderRemarkController@dodel');
        });

        Route::group([
            'prefix' => 'payinouttype'
        ], function ($router) {
            Route::post('getlist', 'Basic\PayinoutTypeController@getlist');
            Route::post('getinfo', 'Basic\PayinoutTypeController@getinfo');
            Route::post('dopostadd', 'Basic\PayinoutTypeController@dopostadd');
            Route::post('dopostedit', 'Basic\PayinoutTypeController@dopostedit');
            Route::post('dodel', 'Basic\PayinoutTypeController@dodel');
            Route::post('dodownload', 'Basic\PayinoutTypeController@dodownload');
            Route::post('doimport', 'Basic\PayinoutTypeController@doimport');
        });

        Route::group([
            'prefix' => 'priceformular'
        ], function ($router) {
            Route::post('getlist', 'Basic\PriceFormularController@getlist');
        });

        Route::group([
            'prefix' => 'memberlv'
        ], function ($router) {
            Route::post('getlist', 'Basic\SiteMemberLvController@getlist');
            Route::post('getinfo', 'Basic\SiteMemberLvController@getinfo');
            Route::post('dopostadd', 'Basic\SiteMemberLvController@dopostadd');
            Route::post('dopostedit', 'Basic\SiteMemberLvController@dopostedit');
            Route::post('del', 'Basic\SiteMemberLvController@del');
        });

        Route::group([
            'prefix' => 'supply'
        ], function ($router) {
            Route::post('getlist', 'Basic\SupplyController@getlist');
            Route::post('getinfo', 'Basic\SupplyController@getinfo');
            Route::post('dopostadd', 'Basic\SupplyController@dopostadd');
            Route::post('dopostedit', 'Basic\SupplyController@dopostedit');
            Route::post('dodel', 'Basic\SupplyController@dodel');
        });

        Route::group([
            'prefix' => 'goodstype'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsTypeController@getlist');
            Route::post('getinfo', 'Basic\GoodsTypeController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsTypeController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsTypeController@dopostedit');
            Route::post('dodel', 'Basic\GoodsTypeController@dodel');
        });
        Route::group([
            'prefix' => 'paytype'
        ], function ($router) {
            Route::post('getlist', 'Basic\PaytypeListController@getlist');
            Route::post('getinfo', 'Basic\PaytypeListController@getinfo');
            Route::post('dopostadd', 'Basic\PaytypeListController@dopostadd');
            Route::post('dopostedit', 'Basic\PaytypeListController@dopostedit');
            Route::post('dodel', 'Basic\PaytypeListController@dodel');
        });

        Route::group([
            'prefix' => 'templatequality'
        ], function ($router) {
            Route::post('getlist', 'Basic\TemplateQualityController@getlist');
            Route::post('dopostadd', 'Basic\TemplateQualityController@dopostadd');
            Route::post('dopostedit', 'Basic\TemplateQualityController@dopostedit');
            Route::post('dodel', 'Basic\TemplateQualityController@dodel');
            Route::post('dodefaultvalue', 'Basic\TemplateQualityController@dodefaultvalue');
            Route::post('savedesigntag', 'Basic\TemplateQualityController@savedesigntag');
            Route::post('copyquality', 'Basic\TemplateQualityController@copyquality');
            Route::post('doexport', 'Basic\TemplateQualityController@doexport');
            Route::post('doimport', 'Basic\TemplateQualityController@doimport');
        });

        Route::group([
            'prefix' => 'templatetag'
        ], function ($router) {
            Route::post('getlist', 'Basic\TemplateTagController@getlist');
            Route::post('dopostadd', 'Basic\TemplateTagController@dopostadd');
            Route::post('dopostedit', 'Basic\TemplateTagController@dopostedit');
            Route::post('dodel', 'Basic\TemplateTagController@dodel');
            Route::post('dodefaultvalue', 'Basic\TemplateTagController@dodefaultvalue');
            Route::post('savedesigntag', 'Basic\TemplateTagController@savedesigntag');
            Route::post('copytag', 'Basic\TemplateTagController@copytag');
            Route::post('doexport', 'Basic\TemplateTagController@doexport');
            Route::post('doimport', 'Basic\TemplateTagController@doimport');

        });

        Route::group([
            'prefix' => 'goodscontent'
        ], function ($router) {
            Route::post('getlist', 'Basic\GoodsContentController@getlist');
            Route::post('getinfo', 'Basic\GoodsContentController@getinfo');
            Route::post('dopostadd', 'Basic\GoodsContentController@dopostadd');
            Route::post('dopostedit', 'Basic\GoodsContentController@dopostedit');
            Route::post('dodel', 'Basic\GoodsContentController@dodel');
        });
    });
    Route::group([
        'prefix' => 'sysset'
    ], function ($router) {


        Route::group([
            'prefix' => 'storefee'
        ], function ($router) {
            Route::post('getlist', 'Account\StoreFeeController@getlist');
            Route::post('getinfo', 'Account\StoreFeeController@getinfo');
            Route::post('dopayfee', 'Account\StoreFeeController@dopayfee');
            Route::post('getpaytypelist', 'Account\StoreFeeController@getpaytypelist');
        });

        Route::group([
            'prefix' => 'classesset'
        ], function ($router) {
            Route::post('getlist', 'Sysset\ClassessetController@getlist');
            Route::post('getinfo', 'Sysset\ClassessetController@getinfo');
            Route::post('dopostadd', 'Sysset\ClassessetController@dopostadd');
            Route::post('dopostedit', 'Sysset\ClassessetController@dopostedit');
            Route::post('dodel', 'Sysset\ClassessetController@dodel');
        });

        Route::group([
            'prefix' => 'goodssendpoints'
        ], function ($router) {
            Route::post('getlist', 'Sysset\GoodsSendpointsController@getlist');
            Route::post('getinfo', 'Sysset\GoodsSendpointsController@getinfo');
            Route::post('dopostadd', 'Sysset\GoodsSendpointsController@dopostadd');
            Route::post('dopostedit', 'Sysset\GoodsSendpointsController@dopostedit');
            Route::post('dodel', 'Sysset\GoodsSendpointsController@dodel');
        });

        Route::group([
            'prefix' => 'predepositgive'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\PredepositgiveController@dopostadd');
            Route::post('getlist', 'Sysset\PredepositgiveController@getlist');
            Route::post('getone', 'Sysset\PredepositgiveController@getone');
            Route::post('dopostedit', 'Sysset\PredepositgiveController@dopostedit');
            Route::post('dodel', 'Sysset\PredepositgiveController@dodel');
            Route::post('getonebymoney', 'Sysset\PredepositgiveController@getonebymoney');
        });

        Route::group([
            'prefix' => 'score'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\ScoreController@dopostadd');
            Route::post('getlist', 'Sysset\ScoreController@getlist');
            Route::post('getone', 'Sysset\ScoreController@getone');
            Route::post('dopostedit', 'Sysset\ScoreController@dopostedit');
            Route::post('dodel', 'Sysset\ScoreController@dodel');
        });

        Route::group([
            'prefix' => 'changegoods'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\Commission\ChangegoodsController@dopostadd');
            Route::post('getlist', 'Sysset\Commission\ChangegoodsController@getlist');
            Route::post('getone', 'Sysset\Commission\ChangegoodsController@getone');
            Route::post('dopostedit', 'Sysset\Commission\ChangegoodsController@dopostedit');
            Route::post('dodel', 'Sysset\Commission\ChangegoodsController@dodel');
        });

        Route::group([
            'prefix' => 'discount'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\Commission\DiscountController@dopostadd');
            Route::post('getlist', 'Sysset\Commission\DiscountController@getlist');
            Route::post('getone', 'Sysset\Commission\DiscountController@getone');
            Route::post('dopostedit', 'Sysset\Commission\DiscountController@dopostedit');
            Route::post('dodel', 'Sysset\Commission\DiscountController@dodel');
        });

        Route::group([
            'prefix' => 'preferention'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\Commission\PreferentionController@dopostadd');
            Route::post('getlist', 'Sysset\Commission\PreferentionController@getlist');
            Route::post('getone', 'Sysset\Commission\PreferentionController@getone');
            Route::post('dopostedit', 'Sysset\Commission\PreferentionController@dopostedit');
            Route::post('dodel', 'Sysset\Commission\PreferentionController@dodel');
        });

        Route::group([
            'prefix' => 'priceandfee'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\Commission\PriceandfeeController@dopostadd');
            Route::post('getlist', 'Sysset\Commission\PriceandfeeController@getlist');
            Route::post('getone', 'Sysset\Commission\PriceandfeeController@getone');
            Route::post('dopostedit', 'Sysset\Commission\PriceandfeeController@dopostedit');
            Route::post('dodel', 'Sysset\Commission\PriceandfeeController@dodel');
        });

        Route::group([
            'prefix' => 'recovery'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\Commission\RecoveryController@dopostadd');
            Route::post('getlist', 'Sysset\Commission\RecoveryController@getlist');
            Route::post('getone', 'Sysset\Commission\RecoveryController@getone');
            Route::post('dopostedit', 'Sysset\Commission\RecoveryController@dopostedit');
            Route::post('dodel', 'Sysset\Commission\RecoveryController@dodel');
        });

        Route::group([
            'prefix' => 'config'
        ], function ($router) {
            Route::post('dopostset', 'Sysset\ConfigController@dopostset');
            Route::post('dopostget', 'Sysset\ConfigController@dopostget');
            Route::post('getmoney', 'Sysset\ConfigController@getmoney');
        });

        Route::group([
            'prefix' => 'signinusemoney'
        ], function ($router) {
            Route::post('dopostadd', 'Sysset\SigninUsemoneyController@dopostadd');
            Route::post('getlist', 'Sysset\SigninUsemoneyController@getlist');
            Route::post('getone', 'Sysset\SigninUsemoneyController@getone');
            Route::post('dopostedit', 'Sysset\SigninUsemoneyController@dopostedit');
            Route::post('dodel', 'Sysset\SigninUsemoneyController@dodel');
            Route::post('getonebymoney', 'Sysset\SigninUsemoneyController@getonebymoney');
            Route::post('getlastone', 'Sysset\SigninUsemoneyController@getlastone');
        });
    });
    Route::group([
        'prefix' => 'log'
    ], function ($router) {
        Route::post('getloginlog', 'Log\LogController@getloginlog');
        Route::post('getdoinglog', 'Log\LogController@getdoinglog');
        Route::post('delloginlog', 'Log\LogController@delloginlog');
        Route::post('deldoinglog', 'Log\LogController@deldoinglog');
    });



    Route::group([
        'prefix' => 'member'
    ], function ($router) {
        Route::group([
            'prefix' => 'member'
        ], function ($router) {
            Route::post('getlist', 'Member\MemberController@getlist');
            Route::post('getinfo', 'Member\MemberController@getinfo');
            Route::post('getinfowithother', 'Member\MemberController@getinfowithother');
            Route::post('dopostadd', 'Member\MemberController@dopostadd');
            Route::post('dopostedit', 'Member\MemberController@dopostedit');
            Route::post('storememchangestore', 'Member\MemberController@storememchangestore');
            Route::post('domoreresetpoints', 'Member\MemberController@domoreresetpoints');
            Route::post('domoredel', 'Member\MemberController@domoredel');

            Route::post('doexport', 'Member\MemberController@doexport');
            Route::post('dodownload', 'Member\MemberController@dodownload');
            Route::post('doimport', 'Member\MemberController@doimport');
            Route::post('bandoutwxaccount', 'Member\MemberController@bandoutwxaccount');

        });

        Route::group([
            'prefix' => 'memberpoints'
        ], function ($router) {
            Route::post('getlist', 'Member\MemberPointsController@getlist');
            Route::post('memberaddpoints', 'Member\MemberPointsController@memberaddpoints');
            Route::post('dodownload', 'Member\MemberPointsController@dodownload');
            Route::post('doimport', 'Member\MemberPointsController@doimport');
            Route::post('doexport', 'Member\MemberPointsController@doexport');
        });

        Route::group([
            'prefix' => 'membalance'
        ], function ($router) {
            Route::post('getlist', 'Member\MemberBalanceController@getlist');
            Route::post('doexport', 'Member\MemberBalanceController@doexport');
        });

        Route::group([
            'prefix' => 'memshoppinglog'
        ], function ($router) {
            Route::post('getlist', 'Member\MemberShoppingLogController@getlist');
            Route::post('dodownload', 'Member\MemberShoppingLogController@dodownload');
            Route::post('doexport', 'Member\MemberShoppingLogController@doexport');
            Route::post('doimport', 'Member\MemberShoppingLogController@doimport');
        });
        Route::group([
            'prefix' => 'memberconsumerecord'
        ], function ($router) {
            Route::post('getlist', 'Member\SiteMemberConsumeRecord@getlist');
            Route::post('doimport', 'Member\SiteMemberConsumeRecord@doimport');
            Route::post('doexport', 'Member\SiteMemberConsumeRecord@doexport');
            Route::post('dopostdel', 'Member\SiteMemberConsumeRecord@dopostdel');
            Route::post('dodownloadtemplate', 'Member\SiteMemberConsumeRecord@dodownloadtemplate');
        });
    });

    Route::group([
        'prefix' => 'goods'
    ], function ($router) {

        Route::post('printtag', 'Goods\GoodsPrinttagController@printtag');
        Route::post('exePrinttag', 'Goods\GoodsPrinttagController@exePrinttag');

        Route::group([
            'prefix' => 'goodsreplenish'
        ], function ($router) {
            Route::post('dopostadd', 'Goods\GoodsReplenishController@dopostadd');
            Route::post('dopostaddnegative', 'Goods\GoodsReplenishController@dopostaddnegative');
            Route::post('dopostedit', 'Goods\GoodsReplenishController@dopostedit');
            Route::post('dopostdel', 'Goods\GoodsReplenishController@dopostdel');
            Route::post('dopostdelinfolist', 'Goods\GoodsReplenishController@dopostdelinfolist');
            Route::post('doimport', 'Goods\GoodsReplenishController@doimport');
            Route::post('doexport', 'Goods\GoodsReplenishController@doexport');
            Route::post('dotemplate', 'Goods\GoodsReplenishController@dotemplate');
            Route::post('getlist', 'Goods\GoodsReplenishController@getlist');
            Route::get('getinfolist', 'Goods\GoodsReplenishController@getinfolist');
            Route::post('doauditsuccess', 'Goods\GoodsReplenishController@doauditsuccess');
            Route::post('doauditsuccessmore', 'Goods\GoodsReplenishController@doauditsuccessmore');
            Route::post('doauditcancel', 'Goods\GoodsReplenishController@doauditcancel');

        });

        Route::group([
            'prefix' => 'goodsallot'
        ], function ($router) {
            Route::post('dopostadd', 'Goods\GoodsAllotController@dopostadd');
            Route::post('dopostedit', 'Goods\GoodsAllotController@dopostedit');
            Route::post('dopostdel', 'Goods\GoodsAllotController@dopostdel');
            Route::post('doimport', 'Goods\GoodsAllotController@doimport');
            Route::post('doexport', 'Goods\GoodsAllotController@doexport');
            Route::post('dotemplate', 'Goods\GoodsAllotController@dotemplate');
            Route::post('getlist', 'Goods\GoodsAllotController@getlist');
            Route::post('getone', 'Goods\GoodsAllotController@getone');
            Route::post('getinfolist', 'Goods\GoodsAllotController@getinfolist');
            Route::post('doauditsuccess', 'Goods\GoodsAllotController@doauditsuccess');
            Route::post('doauditcancel', 'Goods\GoodsAllotController@doauditcancel');
            Route::post('doauditsuccessmore', 'Goods\GoodsAllotController@doauditsuccessmore');
            Route::post('doauditcancelmore', 'Goods\GoodsAllotController@doauditcancelmore');
        });

        Route::group([
            'prefix' => 'goodsreturn'
        ], function ($router) {
            Route::post('dopostadd', 'Goods\GoodsReturnController@dopostadd');
            Route::post('dopostedit', 'Goods\GoodsReturnController@dopostedit');
            Route::post('dopostdel', 'Goods\GoodsReturnController@dopostdel');
            Route::post('doimport', 'Goods\GoodsReturnController@doimport');
            Route::post('doexport', 'Goods\GoodsReturnController@doexport');
            Route::post('dotemplate', 'Goods\GoodsReturnController@dotemplate');
            Route::post('getlist', 'Goods\GoodsReturnController@getlist');
            Route::post('getinfolist', 'Goods\GoodsReturnController@getinfolist');
            Route::post('doauditsuccess', 'Goods\GoodsReturnController@doauditsuccess');
            Route::post('doauditcancel', 'Goods\GoodsReturnController@doauditcancel');
            Route::post('doauditsuccessmore', 'Goods\GoodsReturnController@doauditsuccessmore');
            Route::post('doauditcancelmore', 'Goods\GoodsReturnController@doauditcancelmore');
        });
        //商品入库
        Route::group([
            'prefix' => 'goodsstockin'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsStockinController@getlist');
            Route::any('getgoodsstockininfo', 'Goods\GoodsStockinController@getgoodsstockininfo');
            Route::post('dopostadd', 'Goods\GoodsStockinController@dopostadd');
            Route::post('dopostinfoedit', 'Goods\GoodsStockinController@dopostinfoedit');
            Route::post('doauditsuccess', 'Goods\GoodsStockinController@doauditsuccess');
            Route::post('doauditcancel', 'Goods\GoodsStockinController@doauditcancel');
            Route::post('downdownload', 'Goods\GoodsStockinController@downdownload');
            Route::post('doimport', 'Goods\GoodsStockinController@doimportnew');
            Route::post('doexport', 'Goods\GoodsStockinController@doexport');
            Route::post('doauditsuccessmore', 'Goods\GoodsStockinController@doauditsuccessmore');
            Route::post('doauditsuccessfast', 'Goods\GoodsStockinController@doauditsuccessfast');
            Route::post('getinfobysncode', 'Goods\GoodsStockinController@getinfobysncode');
            Route::post('doauditcancelmore', 'Goods\GoodsStockinController@doauditcancelmore');
            Route::post('getinfobyid', 'Goods\GoodsStockinController@getinfobyid');
            Route::post('dopaymoeny', 'Goods\GoodsStockinController@dopaymoeny');
            Route::post('doexportgoodsstockin', 'Goods\GoodsStockinController@doexportgoodsstockin');
            Route::post('doauditmorecancel', 'Goods\GoodsStockinController@doauditmorecancel');
            Route::post('dopostinfoimgedit', 'Goods\GoodsStockinController@dopostinfoimgedit');
            Route::post('doelectronicadd', 'Goods\GoodsStockinController@doelectronicadd');
            Route::post('electronicgetlist', 'Goods\GoodsStockinController@electronicgetlist');
            Route::post('doelectronicsuccessmore', 'Goods\GoodsStockinController@doelectronicsuccessmore');
            Route::post('stockDel', 'Goods\GoodsStockinController@stockDel');
            Route::post('stockinPrint', 'Goods\GoodsStockinController@stockinPrint');


        });
        //库存详情
        Route::group([
            'prefix' => 'goodsstockininfo'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsStockinInfolistController@getlist');
            Route::post('doexport', 'Goods\GoodsStockinInfolistController@doexport');
        });

        //库存列表
        Route::group([
            'prefix' => 'goodsstock'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsStockListController@getlist');
            Route::post('getinfobysncode', 'Goods\GoodsStockListController@getinfobysncode');

            Route::post('dopostdel', 'Goods\GoodsStockListController@dopostdel');
            Route::post('downdownload', 'Goods\GoodsStockListController@downdownload');
            Route::post('doposteditbysncode', 'Goods\GoodsStockListController@doposteditbysncode');
            Route::post('dopostadd', 'Goods\GoodsStockListController@dopostadd');
            Route::post('dopostinfoedit', 'Goods\GoodsStockListController@dopostinfoedit');
            Route::post('doposteditbygoods', 'Goods\GoodsStockListController@doposteditbygoods');
            Route::post('getinfobysncodemore', 'Goods\GoodsStockListController@getinfobysncodemore');
            Route::post('transformoldmaterial', 'Goods\GoodsStockListController@transformoldmaterial');
            Route::post('doexport', 'Goods\GoodsStockListController@doexport');
            Route::post('postgoodsimg', 'Goods\GoodsStockListController@postgoodsimg');
            Route::post('getinfobyid', 'Goods\GoodsStockListController@getinfobyid');
            Route::post('dopostinfoimgedit', 'Goods\GoodsStockListController@dopostinfoimgedit');
        });

        Route::group([
            'prefix' => 'goodstotalstock'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsTotalStockListController@getlist');
            Route::post('doexport', 'Goods\GoodsTotalStockListController@doexport');
            Route::post('dopostedit', 'Goods\GoodsTotalStockListController@dopostedit');
            Route::post('getone', 'Goods\GoodsTotalStockListController@getone');
            Route::post('oncounter', 'Goods\GoodsTotalStockListController@oncounter');
        });

        //商品流水日志
        Route::group([
            'prefix' => 'goodslog'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsLogController@getlist');
            Route::post('doexport', 'Goods\GoodsLogController@doexport');

        });
        //商品修改记录
        Route::group([
            'prefix' => 'goodschangelog'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsChangeLogController@getlist');
            Route::post('getinfo', 'Goods\GoodsChangeLogController@getinfo');
            Route::post('doexport', 'Goods\GoodsChangeLogController@doexport');
            Route::post('doexportbyinfo', 'Goods\GoodsChangeLogController@doexportbyinfo');

        });

        //盘点
        Route::group([
            'prefix' => 'goodscheck'
        ], function ($router) {
            Route::post('dopostadd', 'Goods\GoodsCheckController@dopostadd');
            Route::post('getlist', 'Goods\GoodsCheckController@getlist');
            Route::post('getone', 'Goods\GoodsCheckController@getone');
            Route::post('doexport', 'Goods\GoodsCheckController@doexport');
            Route::post('dodel', 'Goods\GoodsCheckController@dodel');
            Route::post('getlistsummary', 'Goods\GoodsCheckController@getlistsummary');
            Route::post('doexportsummary', 'Goods\GoodsCheckController@doexportsummary');
            Route::post('summarycheck', 'Goods\GoodsCheckController@summarycheck');
            Route::post('onekeycheck', 'Goods\GoodsCheckController@onekeycheck');
            Route::post('getinfolist', 'Goods\GoodsCheckController@getinfolist');
            Route::post('doexportinfolist', 'Goods\GoodsCheckController@doexportinfolist');
            Route::post('checkget', 'Goods\GoodsCheckController@checkget');
            Route::post('checkset', 'Goods\GoodsCheckController@checkset');
            Route::post('getcheckresult', 'Goods\GoodsCheckController@getcheckresult');
            Route::post('doexportresult', 'Goods\GoodsCheckController@doexportresult');
            Route::post('getcategory', 'Goods\GoodsCheckController@getcategory');
            Route::post('incrStocktaking', 'Goods\GoodsCheckController@incrStocktaking');
        });
    });
    Route::group([
        'prefix' => 'goodssend'
    ], function ($router) {
        Route::group([
            'prefix' => 'goodssend'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsSend\GoodsSendgoodsController@getlist');
            Route::post('getinfo', 'Goods\GoodsSend\GoodsSendgoodsController@getinfo');
            Route::post('dopostadd', 'Goods\GoodsSend\GoodsSendgoodsController@dopostadd');
            Route::post('dopostedit', 'Goods\GoodsSend\GoodsSendgoodsController@dopostedit');
            Route::post('dodel', 'Goods\GoodsSend\GoodsSendgoodsController@dodel');
            Route::post('doauditsuccess', 'Goods\GoodsSend\GoodsSendgoodsController@doauditsuccess');
            Route::post('doauditcancel', 'Goods\GoodsSend\GoodsSendgoodsController@doauditcancel');
            Route::post('doimport', 'Goods\GoodsSend\GoodsSendgoodsController@doimport');
            Route::post('downdownload', 'Goods\GoodsSend\GoodsSendgoodsController@downdownload');
            Route::post('doexport', 'Goods\GoodsSend\GoodsSendgoodsController@doexport');
        });

        Route::group([
            'prefix' => 'goodsallot'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsSend\GoodsSendgoodsAllotController@getlist');
            Route::post('doauditsuccess', 'Goods\GoodsSend\GoodsSendgoodsAllotController@doauditsuccess');
            Route::post('doauditcancel', 'Goods\GoodsSend\GoodsSendgoodsAllotController@doauditcancel');
            Route::post('doauditsuccessmore', 'Goods\GoodsSend\GoodsSendgoodsAllotController@doauditsuccessmore');
            Route::post('doexport', 'Goods\GoodsSend\GoodsSendgoodsAllotController@doexport');
            Route::post('doauditcancelmore', 'Goods\GoodsSend\GoodsSendgoodsAllotController@doauditcancelmore');
            Route::post('dodistributionmore', 'Goods\GoodsSend\GoodsSendgoodsAllotController@dodistributionmore');

        });

        Route::group([
            'prefix' => 'goodslog'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsSend\GoodsSendgoodsLogController@getlist');
            Route::post('doexport', 'Goods\GoodsSend\GoodsSendgoodsLogController@doexport');

        });

        Route::group([
            'prefix' => 'goodsstock'
        ], function ($router) {
            Route::post('getlist', 'Goods\GoodsSend\GoodsSendgoodsStockController@getlist');
            Route::post('dodistribution', 'Goods\GoodsSend\GoodsSendgoodsStockController@dodistribution');
            Route::post('doexport', 'Goods\GoodsSend\GoodsSendgoodsStockController@doexport');

        });

    });

    Route::group([
        'prefix' => 'oldmaterial'
    ], function ($router) {
        Route::group([
            'prefix' => 'stock'
        ], function ($router) {
            Route::post('getlist', 'OldMaterial\StockController@getlist');
            Route::post('getsummarylist', 'OldMaterial\StockController@getsummarylist');
            Route::post('doexport', 'OldMaterial\StockController@doexport');
            Route::post('dosummaryexport', 'OldMaterial\StockController@dosummaryexport');
            Route::post('dopostedit', 'OldMaterial\StockController@dopostedit');
            Route::post('oncounter', 'OldMaterial\StockController@oncounter');
        });

        Route::group([
            'prefix' => 'totalstock'
        ], function ($router) {
            Route::post('getlist', 'OldMaterial\TotalStockController@getlist');
            Route::post('doexport', 'OldMaterial\TotalStockController@doexport');
            Route::post('dopostedit', 'OldMaterial\TotalStockController@dopostedit');
            Route::post('getone', 'OldMaterial\TotalStockController@getone');
        });

        Route::group([
            'prefix' => 'allot'
        ], function ($router) {
            Route::post('dopostadd', 'OldMaterial\AllotController@dopostadd');
            Route::post('getlist', 'OldMaterial\AllotController@getlist');
            Route::post('doexport', 'OldMaterial\AllotController@doexport');
            Route::post('getinfolist', 'OldMaterial\AllotController@getinfolist');
            Route::post('dosummaryexport', 'OldMaterial\AllotController@dosummaryexport');
            Route::post('doinfolistexport', 'OldMaterial\AllotController@doinfolistexport');
            Route::post('doauditsuccess', 'OldMaterial\AllotController@doauditsuccess');
            Route::post('doauditsuccessmore', 'OldMaterial\AllotController@doauditsuccessmore');
            Route::post('doauditcancel', 'OldMaterial\AllotController@doauditcancel');
            Route::post('dodel', 'OldMaterial\AllotController@dodel');
        });

        Route::group([
            'prefix' => 'return'
        ], function ($router) {
            Route::post('dopostadd', 'OldMaterial\ReturnController@dopostadd');
            Route::post('getlist', 'OldMaterial\ReturnController@getlist');
            Route::post('doexport', 'OldMaterial\ReturnController@doexport');
            Route::post('getinfolist', 'OldMaterial\ReturnController@getinfolist');
            Route::post('dosummaryexport', 'OldMaterial\ReturnController@dosummaryexport');
            Route::post('doinfolistexport', 'OldMaterial\ReturnController@doinfolistexport');
            Route::post('doauditsuccess', 'OldMaterial\ReturnController@doauditsuccess');
            Route::post('doauditsuccessmore', 'OldMaterial\ReturnController@doauditsuccessmore');
            Route::post('doauditcancel', 'OldMaterial\ReturnController@doauditcancel');
            Route::post('doauditcancelmore', 'OldMaterial\ReturnController@doauditcancelmore');
            Route::post('dodel', 'OldMaterial\ReturnController@dodel');
        });

        Route::group([
            'prefix' => 'log'
        ], function ($router) {
            Route::post('getlist', 'OldMaterial\LogController@getlist');
            Route::post('doexport', 'OldMaterial\LogController@doexport');
        });

        Route::group([
            'prefix' => 'olddata'
        ], function ($router) {
            Route::post('dopostadd', 'OldMaterial\OldDataController@dopostadd');
            Route::post('getlist', 'OldMaterial\OldDataController@getlist');
            Route::post('dodel', 'OldMaterial\OldDataController@dodel');
            Route::post('doimport', 'OldMaterial\OldDataController@doimport');
            Route::post('dotemplate', 'OldMaterial\OldDataController@dotemplate');
        });
    });

    Route::group([
        'prefix' => 'order'
    ], function ($router) {
        //销售订单
        Route::group([
            'prefix' => 'ordersales'
        ], function ($router) {
            Route::post('dopostorder', 'Order\OrderSalesController@dopostorder');
            Route::post('doordermakerpay', 'Order\OrderSalesController@doordermakerpay');
            Route::post('doordermakercancel', 'Order\OrderSalesController@doordermakercancel');
            Route::post('doordermakerpaymore', 'Order\OrderSalesController@doordermakerpaymore');
            Route::post('getorderlist', 'Order\OrderSalesController@getorderlist');
            Route::post('getinfo', 'Order\OrderSalesController@getinfo');
            Route::post('doorderedit', 'Order\OrderSalesController@doorderedit');
            Route::post('doorderauditsuccess', 'Order\OrderSalesController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderSalesController@doorderauditcancel');
            Route::post('doredflush', 'Order\OrderSalesController@doredflush');
            Route::post('changeorderinfo', 'Order\OrderSalesController@changeorderinfo');
            Route::post('changememinfo', 'Order\OrderSalesController@changememinfo');
            Route::post('doexport', 'Order\OrderSalesController@doexport');
            Route::post('getcanusecoupon', 'Order\OrderSalesController@getcanusecoupon');
            Route::post('rerungrossprofits', 'Order\OrderSalesController@rerungrossprofits');
            Route::post('getorderprintdata', 'Order\OrderSalesController@getorderprintdata');
            Route::post('getinfobyordersn', 'Order\OrderSalesController@getinfobyordersn');

            Route::post('doorderauditsuccessmore', 'Order\OrderSalesController@doorderauditsuccessmore');
            Route::post('doorderauditcancelmore', 'Order\OrderSalesController@doorderauditcancelmore');


        });

        //定金开单
        Route::group([
            'prefix' => 'orderdeposit'
        ], function ($router) {
            Route::post('dopostorder', 'Order\OrderDepositController@dopostorder');
            Route::post('doordermakerpay', 'Order\OrderDepositController@doordermakerpay');
            Route::post('getorderlist', 'Order\OrderDepositController@getorderlist');
            Route::post('getinfo', 'Order\OrderDepositController@getinfo');
            Route::post('doorderedit', 'Order\OrderDepositController@doorderedit');
            Route::post('doorderauditsuccess', 'Order\OrderDepositController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderDepositController@doorderauditcancel');
            Route::post('doexport', 'Order\OrderDepositController@doexport');
            Route::post('doorderauditsuccessmore', 'Order\OrderDepositController@doorderauditsuccessmore');
            Route::post('doorderauditcancelmore', 'Order\OrderDepositController@doorderauditcancelmore');
            Route::post('getorderprintdata', 'Order\OrderDepositController@getorderprintdata');
        });

        //维修开单
        Route::group([
            'prefix' => 'ordermaintenance'
        ], function ($router) {
            Route::post('dopostorder', 'Order\OrderMaintenanceController@dopostorder');
            Route::post('doordermakerpay', 'Order\OrderMaintenanceController@doordermakerpay');
            Route::post('getorderlist', 'Order\OrderMaintenanceController@getorderlist');
            Route::post('getinfo', 'Order\OrderMaintenanceController@getinfo');
            Route::post('doorderedit', 'Order\OrderMaintenanceController@doorderedit');
            Route::post('doorderauditsuccess', 'Order\OrderMaintenanceController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderMaintenanceController@doorderauditcancel');
            Route::post('doexport', 'Order\OrderMaintenanceController@doexport');
            Route::post('changememinfo', 'Order\OrderMaintenanceController@changememinfo');
            Route::post('doorderauditsuccessmore', 'Order\OrderMaintenanceController@doorderauditsuccessmore');
            Route::post('doorderauditcancelmore', 'Order\OrderMaintenanceController@doorderauditcancelmore');
            Route::post('getorderprintdata', 'Order\OrderMaintenanceController@getorderprintdata');
        });

        //纯回收开单
        Route::group([
            'prefix' => 'orderrecovery'
        ], function ($router) {
            Route::post('dopostorder', 'Order\OrderRecoveryController@dopostorder');
            Route::post('doordermakerpay', 'Order\OrderRecoveryController@doordermakerpay');
            Route::post('getorderlist', 'Order\OrderRecoveryController@getorderlist');
            Route::post('getinfo', 'Order\OrderRecoveryController@getinfo');
            Route::post('doorderedit', 'Order\OrderRecoveryController@doorderedit');
            Route::post('doorderauditsuccess', 'Order\OrderRecoveryController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderRecoveryController@doorderauditcancel');
            Route::post('doexport', 'Order\OrderRecoveryController@doexport');
            Route::post('changememinfo', 'Order\OrderRecoveryController@changememinfo');
            Route::post('getinfobyordersn', 'Order\OrderRecoveryController@getinfobyordersn');
            Route::post('doorderauditsuccessmore', 'Order\OrderRecoveryController@doorderauditsuccessmore');
            Route::post('doorderauditcancelmore', 'Order\OrderRecoveryController@doorderauditcancelmore');
            Route::post('getorderprintdata', 'Order\OrderRecoveryController@getorderprintdata');

        });
        //积分转预存开单
        Route::group([
            'prefix' => 'orderpointschangebalance'
        ], function ($router) {
            Route::post('dopostorder', 'Order\OrderPointschangebalanceController@dopostorder');
            Route::post('getorderlist', 'Order\OrderPointschangebalanceController@getorderlist');
            Route::post('getinfo', 'Order\OrderPointschangebalanceController@getinfo');
            Route::post('doorderauditsuccess', 'Order\OrderPointschangebalanceController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderPointschangebalanceController@doorderauditcancel');
        });

        //充值
        Route::group([
            'prefix' => 'orderrecharge'
        ], function ($router) {
            Route::post('dopostorder', 'Order\OrderRechargeController@dopostorder');
            Route::post('getorderlist', 'Order\OrderRechargeController@getorderlist');
            Route::post('getinfo', 'Order\OrderRechargeController@getinfo');
            Route::post('doorderauditsuccess', 'Order\OrderRechargeController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderRechargeController@doorderauditcancel');
            Route::post('doexport', 'Order\OrderRechargeController@doexport');
            Route::post('doorderauditsuccessmore', 'Order\OrderRechargeController@doorderauditsuccessmore');
            Route::post('doorderauditcancelmore', 'Order\OrderRechargeController@doorderauditcancelmore');
            Route::post('getorderprintdata', 'Order\OrderRechargeController@getorderprintdata');

        });

        //充值
        Route::group([
            'prefix' => 'ordersalesredflush'
        ], function ($router) {
            Route::post('getorderlist', 'Order\OrderSalesRedflushController@getorderlist');
            Route::post('getinfo', 'Order\OrderSalesRedflushController@getinfo');
            Route::post('doorderauditsuccess', 'Order\OrderSalesRedflushController@doorderauditsuccess');
            Route::post('doorderauditcancel', 'Order\OrderSalesRedflushController@doorderauditcancel');
            Route::post('doexport', 'Order\OrderSalesRedflushController@doexport');


        });

        Route::group([
            'prefix' => 'ordersalesinfo'
        ], function ($router) {
            Route::post('getordergoodslist', 'Order\OrderSalesInfoController@getordergoodslist');
            Route::post('getorderchangegoodslist', 'Order\OrderSalesInfoController@getorderchangegoodslist');
            Route::post('exportordergoodslist', 'Order\OrderSalesInfoController@exportordergoodslist');
            Route::post('exportorderchangegoodslist', 'Order\OrderSalesInfoController@exportorderchangegoodslist');
            Route::post('getsalesorderlist', 'Order\OrderSalesInfoController@getsalesorderlist');
            Route::post('getotherorderinfo', 'Order\OrderSalesInfoController@getotherorderinfo');
            Route::post('getsalesGoods', 'Order\OrderSalesInfoController@getsalesGoods');


        });
    });

    Route::group([
        'prefix' => 'wxapp'
    ], function ($router) {
        Route::group([
            'prefix' => 'wxsetting'
        ], function ($router) {
            Route::post('getwxaccountsetting', 'Wxapp\WxSettingController@getwxaccountsetting');
            Route::post('postwxaccountsetting', 'Wxapp\WxSettingController@postwxaccountsetting');
            Route::post('getwxaccounttemplate', 'Wxapp\WxSettingController@getwxaccounttemplate');
            Route::post('postwxaccounttemplate', 'Wxapp\WxSettingController@postwxaccounttemplate');
            Route::post('getwxappsetting', 'Wxapp\WxSettingController@getwxappsetting');
            Route::post('postwxappsetting', 'Wxapp\WxSettingController@postwxappsetting');
        });

        Route::group([
            'prefix' => 'warrantycertificatestting'
        ], function ($router) {
            Route::post('getlist', 'Wxapp\WarrantycertificateSettingController@getlist');
            Route::post('dopostadd', 'Wxapp\WarrantycertificateSettingController@dopostadd');
            Route::post('changestatus', 'Wxapp\WarrantycertificateSettingController@changestatus');
            Route::post('getsettinginfo', 'Wxapp\WarrantycertificateSettingController@getsettinginfo');
            Route::post('postsetting', 'Wxapp\WarrantycertificateSettingController@postsetting');
        });

        Route::group([
            'prefix' => 'swimg'
        ], function ($router) {
            Route::post('getlist', 'Wxapp\SwimgController@getlist');
            Route::post('dopostadd', 'Wxapp\SwimgController@dopostadd');
            Route::post('dodel', 'Wxapp\SwimgController@dodel');
        });

        Route::group([
            'prefix' => 'coupon'
        ], function ($router) {
            Route::post('getlist', 'Wxapp\WxappCoupon\WxappCouponController@getlist');
            Route::post('dopostadd', 'Wxapp\WxappCoupon\WxappCouponController@dopostadd');
            Route::post('getcouponcodelist', 'Wxapp\WxappCoupon\WxappCouponController@getcouponcodelist');
            Route::post('dodel', 'Wxapp\WxappCoupon\WxappCouponController@dodel');

        });


        Route::group([
            'prefix' => 'wxappgift'
        ], function ($router) {
            Route::group([
                'prefix' => 'giftcategory'
            ], function ($router) {
                Route::post('getlist', 'Wxapp\WxappGift\WxappGiftCategoryController@getlist');
                Route::post('getinfo', 'Wxapp\WxappGift\WxappGiftCategoryController@getinfo');
                Route::post('dopostadd', 'Wxapp\WxappGift\WxappGiftCategoryController@dopostadd');
                Route::post('dopostedit', 'Wxapp\WxappGift\WxappGiftCategoryController@dopostedit');
                Route::post('dodel', 'Wxapp\WxappGift\WxappGiftCategoryController@dodel');
            });

            Route::group([
                'prefix' => 'giftstock'
            ], function ($router) {
                Route::post('getlist', 'Wxapp\WxappGift\WxappGiftStockController@getlist');
                Route::post('getinfo', 'Wxapp\WxappGift\WxappGiftStockController@getinfo');
                Route::post('dopostadd', 'Wxapp\WxappGift\WxappGiftStockController@dopostadd');
                Route::post('dopostedit', 'Wxapp\WxappGift\WxappGiftStockController@dopostedit');
                Route::post('dopoststockin', 'Wxapp\WxappGift\WxappGiftStockController@dopoststockin');
                Route::post('dodel', 'Wxapp\WxappGift\WxappGiftStockController@dodel');
                Route::post('doauditsuccess', 'Wxapp\WxappGift\WxappGiftStockController@doauditsuccess');
                Route::post('doauditcancel', 'Wxapp\WxappGift\WxappGiftStockController@doauditcancel');
                Route::post('dopostallot', 'Wxapp\WxappGift\WxappGiftStockController@dopostallot');
                Route::post('downdownload', 'Wxapp\WxappGift\WxappGiftStockController@downdownload');
                Route::post('doimport', 'Wxapp\WxappGift\WxappGiftStockController@doimport');
            });

            Route::group([
                'prefix' => 'giftallot'
            ], function ($router) {
                Route::post('getlist', 'Wxapp\WxappGift\WxappGiftAllotController@getlist');
                Route::post('doauditsuccess', 'Wxapp\WxappGift\WxappGiftAllotController@doauditsuccess');
                Route::post('doauditcancel', 'Wxapp\WxappGift\WxappGiftAllotController@doauditcancel');
            });

            Route::group([
                'prefix' => 'giftlog'
            ], function ($router) {
                Route::post('getlist', 'Wxapp\WxappGift\WxappGiftLogController@getlist');
                Route::post('doexport', 'Wxapp\WxappGift\WxappGiftLogController@doexport');
            });

            Route::group([
                'prefix' => 'giftexchangelog'
            ], function ($router) {
                Route::post('getlist', 'Wxapp\WxappGift\WxappGiftExchangelogController@getlist');
                Route::post('doexchange', 'Wxapp\WxappGift\WxappGiftExchangelogController@doexchange');
                Route::post('doexport', 'Wxapp\WxappGift\WxappGiftExchangelogController@doexport');
            });
        });
    });

    Route::group([
        'prefix' => 'alisms'
    ], function ($router) {
        Route::group([
            'prefix' => 'alisetting'
        ], function ($router) {
            Route::post('getalismssetting', 'Alisms\AliSettingController@getalisetting');
            Route::post('postalismssetting', 'Alisms\AliSettingController@postalisetting');
            Route::post('getalismstemplate', 'Alisms\AliSettingController@getalitemplate');
            Route::post('postalismstemplate', 'Alisms\AliSettingController@postalitemplate');
        });
    });

    Route::group([
        'prefix' => 'message'
    ], function ($router) {
        Route::group([
            'prefix' => 'phone'
        ], function ($router) {
            Route::post('dopostadd', 'Message\PhoneController@dopostadd');
            Route::post('getlist', 'Message\PhoneController@getlist');
            Route::post('dopostedit', 'Message\PhoneController@dopostedit');
            Route::post('dodel', 'Message\PhoneController@dodel');
            Route::post('send', 'Message\PhoneController@send');
        });

        Route::group([
            'prefix' => 'festival'
        ], function ($router) {
            Route::post('dopostadd', 'Message\FestivalController@dopostadd');
            Route::post('getlist', 'Message\FestivalController@getlist');
            Route::post('dodel', 'Message\FestivalController@dodel');
            Route::post('dopostedit', 'Message\FestivalController@dopostedit');
            Route::post('send', 'Message\FestivalController@send');
        });

        Route::group([
            'prefix' => 'score'
        ], function ($router) {
            Route::post('dopostadd', 'Message\ScoreController@dopostadd');
            Route::post('dopostedit', 'Message\ScoreController@dopostedit');
            Route::post('getlist', 'Message\ScoreController@getlist');
            Route::post('dodel', 'Message\ScoreController@dodel');
            Route::post('dopostedit', 'Message\ScoreController@dopostedit');
            Route::post('send', 'Message\ScoreController@send');
        });

        Route::group([
            'prefix' => 'rule'
        ], function ($router) {
            Route::post('dopostadd', 'Message\RuleController@dopostadd');
            Route::post('dopostedit', 'Message\RuleController@dopostedit');
            Route::post('getlist', 'Message\RuleController@getlist');
            Route::post('dodel', 'Message\RuleController@dodel');
        });
    });



    Route::group([
        'prefix' => 'financial'
    ], function ($router) {
        Route::group([
            'prefix' => 'statements'
        ], function ($router) {
            Route::group([
                'prefix' => 'subject'
            ], function ($router) {
                Route::post('getlist', 'Financial\Statements\SubjectController@getlist');
                Route::post('dopostadd', 'Financial\Statements\SubjectController@dopostadd');
                Route::post('dopostedit', 'Financial\Statements\SubjectController@dopostedit');
                Route::post('dopostdel', 'Financial\Statements\SubjectController@dopostdel');
                Route::post('doexport', 'Financial\Statements\SubjectController@doexport');
            });

            Route::group([
                'prefix' => 'liabilities'
            ], function ($router) {
                Route::post('getlist', 'Financial\Statements\LiabilitiesController@getlist');
                Route::post('getone', 'Financial\Statements\LiabilitiesController@getone');
              //  Route::post('dopostadd', 'Financial\Statements\LiabilitiesController@dopostadd');
                Route::post('doexport', 'Financial\Statements\LiabilitiesController@doexport');
            });

            Route::group([
                'prefix' => 'rate'
            ], function ($router) {
                Route::post('dopostadd', 'Financial\Statements\RateController@dopostadd');
                Route::post('getlist', 'Financial\Statements\RateController@getlist');
                Route::post('getone', 'Financial\Statements\RateController@getone');
                Route::post('dopostedit', 'Financial\Statements\RateController@dopostedit');
                Route::post('dopostdel', 'Financial\Statements\RateController@dopostdel');
                Route::post('doexport', 'Financial\Statements\RateController@doexport');
            });

            Route::group([
                'prefix' => 'moneylog'
            ], function ($router) {
                Route::post('dopostadd', 'Financial\Statements\MoneylogController@dopostadd');
                Route::post('getlist', 'Financial\Statements\MoneylogController@getlist');
                Route::post('getone', 'Financial\Statements\MoneylogController@getone');
                Route::post('dopostedit', 'Financial\Statements\MoneylogController@dopostedit');
                Route::post('dopostdel', 'Financial\Statements\MoneylogController@dopostdel');
                Route::post('doexport', 'Financial\Statements\MoneylogController@doexport');
                Route::post('getlastmoneylog', 'Financial\Statements\MoneylogController@getlastmoneylog');
                Route::post('getmoneylogcountbyday', 'Financial\Statements\MoneylogController@getmoneylogcountbyday');
                Route::post('updateMoneyLog', 'Financial\Statements\MoneylogController@updateMoneyLog');
            });

            Route::group([
                'prefix' => 'profit'
            ], function ($router) {
                Route::post('getsearchdata', 'Financial\Statements\ProfitController@getsearchdata');
              //  Route::post('getinfo', 'Financial\Statements\ProfitController@getinfo');
               // Route::post('saveinfo', 'Financial\Statements\ProfitController@saveinfo');

            });

            // 记账凭证
            Route::group([
                'prefix' => 'voucher'
            ], function ($router) {
                Route::post('dopostadd', 'Financial\Statements\VoucherController@dopostadd');
                Route::post('dopostedit', 'Financial\Statements\VoucherController@dopostedit');
                Route::post('getinfo', 'Financial\Statements\VoucherController@getinfo');
                Route::post('getlist', 'Financial\Statements\VoucherController@getlist');
                Route::post('dopostdel', 'Financial\Statements\VoucherController@dopostdel');
                Route::post('export', 'Financial\Statements\VoucherController@export');

            });

        });

        Route::group([
            'prefix' => 'goods'
        ], function ($router) {
            Route::group([
                'prefix' => 'goodstime'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsTimeController@getlist');
                Route::post('doexport', 'Financial\Goods\GoodsTimeController@doexport');
            });
            Route::group([
                'prefix' => 'goodspurchasesales'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsPurchaseSalesController@getlist');
                Route::post('doexport', 'Financial\Goods\GoodsPurchaseSalesController@doexport');
            });
            Route::group([
                'prefix' => 'goodsstockhistory'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsStockHistoryController@getlist');
                Route::post('doexport', 'Financial\Goods\GoodsStockHistoryController@doexport');
                Route::post('detail', 'Financial\Goods\GoodsStockHistoryController@detail');
                Route::post('detailexport', 'Financial\Goods\GoodsStockHistoryController@detailexport');
            });
            Route::group([
                'prefix' => 'goodssendgoods'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsSendGoodsController@getlist');
                Route::post('doexport', 'Financial\Goods\GoodsSendGoodsController@doexport');
            });
            Route::group([
                'prefix' => 'goodsstocknow'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsStockNowController@getlist');
                Route::post('doexport', 'Financial\Goods\GoodsStockNowController@doexport');
                Route::post('doexportdetail', 'Financial\Goods\GoodsStockNowController@doexportdetail');
                Route::post('detail', 'Financial\Goods\GoodsStockNowController@detail');
                Route::post('detailexport', 'Financial\Goods\GoodsStockNowController@detailexport');
            });

            Route::group([
                'prefix' => 'goodswarning'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsWarningController@getlist');
                Route::post('getinfo', 'Financial\Goods\GoodsWarningController@getinfo');
                Route::post('dopostadd', 'Financial\Goods\GoodsWarningController@dopostadd');
                Route::post('dopostedit', 'Financial\Goods\GoodsWarningController@dopostedit');
                Route::post('dodel', 'Financial\Goods\GoodsWarningController@dodel');
                Route::post('doexport', 'Financial\Goods\GoodsWarningController@doexport');
            });
            Route::group([
                'prefix' => 'stockin'
            ], function ($router) {
                Route::post('getlist', 'Financial\Goods\GoodsStockinSummaryController@getlist');
                Route::post('doexport', 'Financial\Goods\GoodsStockinSummaryController@doexport');
                // 明细
                Route::post('getdetail', 'Financial\Goods\GoodsStockinSummaryController@getdetail');
                Route::post('detailexport', 'Financial\Goods\GoodsStockinSummaryController@detailexport');

            });
        });

        Route::group([
            'prefix' => 'business'
        ], function ($router) {
            Route::group([
                'prefix' => 'salescommission'
            ], function ($router) {
                Route::post('getlist', 'Financial\Business\SalesCommissionController@getlist');
                Route::post('getsummarydata', 'Financial\Business\SalesCommissionController@getsummarydata');

            });

            Route::group([
                'prefix' => 'salesinfo'
            ], function ($router) {
                Route::post('getlist', 'Financial\Business\SalesInfoController@getlist');

            });

            Route::group([
                'prefix' => 'oldmaterial'
            ], function ($router) {
                Route::post('getlist', 'Financial\Business\OldMaterialController@getlist');
                Route::post('doexport', 'Financial\Business\OldMaterialController@doexport');
            });

            Route::group([
                'prefix' => 'summary'
            ], function ($router) {
                Route::post('getinfo', 'Financial\Business\SummaryController@getinfo');

            });

            Route::group([
                'prefix' => 'otherpay'
            ], function ($router) {
                Route::post('dopostadd', 'Financial\Business\OtherPayController@dopostadd');
                Route::post('getinfo', 'Financial\Business\OtherPayController@getinfo');
                Route::post('dopostedit', 'Financial\Business\OtherPayController@dopostedit');
                Route::post('getdatabysearch', 'Financial\Business\OtherPayController@getdatabysearch');
                Route::post('doexport', 'Financial\Business\OtherPayController@doexport');

            });
            Route::group([
                'prefix' => 'salesperformance'
            ], function ($router) {
                Route::post('getinfo', 'Financial\Business\SalesPerformanceController@getinfo');
                Route::post('getinfobycount', 'Financial\Business\SalesPerformanceController@getinfobycount');

            });

            Route::group([
                'prefix' => 'grossprofits'
            ], function ($router) {
                Route::post('getlist', 'Financial\Business\GrossProfitsController@getlist');

            });
            // 销售汇总明细
            Route::group([
                'prefix' => 'salessummary'
            ], function ($router) {
                Route::post('getlist', 'Financial\Business\SalesSummaryController@getlist');
                Route::post('doexport', 'Financial\Business\SalesSummaryController@doexport');
                Route::post('getdetail', 'Financial\Business\SalesSummaryController@getdetail');
                Route::post('detailexport', 'Financial\Business\SalesSummaryController@detailexport');

            });

        });


    });

    Route::group([
        'prefix' => 'datashow'
    ], function ($router) {
        Route::post('getdatacount', 'Common\DataController@getdatacount');
        Route::post('getpaydata', 'Common\DataController@getpaydata');
        Route::post('getsolarbdateccount', 'Common\DataController@getsolarbdateccount');
        Route::post('getmembercountdata', 'Common\DataController@getmembercountdata');
        Route::post('getmemberdatashow', 'Common\DataController@getmemberdatashow');
        Route::post('getperformancedatashow', 'Common\DataController@getperformancedatashow');
    });
});


// Route::domain('zhuxiaobao.cc')->group(function () {
//     Route::get('dotest123', 'TestController@dotest');
// });


Route::post('template/savedata', 'Api\TemplateController@savetemplate');
Route::post('template/templatedata', 'Api\TemplateController@templatedata');
